package com.kyivmohyla.kma2.dao;

import com.kyivmohyla.kma2.model.Equipment;
import com.kyivmohyla.kma2.model.Service;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface EquipmentDao extends Dao<Equipment> {
    public void deleteList(List<Equipment> objs) throws DataAccessException;

    public boolean canBeChildDeleted(Equipment equipment) throws DataAccessException;

    public boolean canBeParentDeleted(Equipment equipment) throws DataAccessException;

    public List<Equipment> getEquipmentByServicesList(List<Service> services) throws DataAccessException;

    public List<Equipment> getEquipmentByOrderId(int id) throws DataAccessException;
}
